import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
const app = createApp(App)
app.use(createPinia())
app.use(router)
app.mount('#app')
import 'amfe-flexible'
import '@/utils/rem.js' 
import Vant from 'vant'
app.use(Vant)
// 2. 引入组件样式
import 'vant/lib/index.css';
import { NavBar } from 'vant';
app.use(NavBar);
import { Tabbar, TabbarItem } from 'vant';
app.use(Tabbar);
app.use(TabbarItem);
import { Grid, GridItem } from 'vant';
app.use(Grid);
app.use(GridItem);
import { ActionBar, ActionBarIcon, ActionBarButton } from 'vant';
app.use(ActionBar);
app.use(ActionBarIcon);
app.use(ActionBarButton);
import { Swipe, SwipeItem } from 'vant';
app.use(Swipe);
app.use(SwipeItem);